
<%@ page import="your_car_status.Diagnostic" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'diagnostic.label', default: 'Diagnostic')}" />
		<title>List Diagnostic</title>
	</head>
	<body>
		<a href="#list-diagnostic" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div id="list-diagnostic" class="content scaffold-list" role="main">
			<h1><g:message code="List Diagnostic"/></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<table>
				<thead>
					<tr>
					
                                                <g:sortableColumn property="date" title="${message(code: 'diagnostic.date.label', default: 'Date')}" />		
                                            
                                                <g:sortableColumn property="paint" title="${message(code: 'diagnostic.paint.label', default: 'Paint')}" />
					
						<g:sortableColumn property="jack" title="${message(code: 'diagnostic.jack.label', default: 'Jack')}" />
					
						<g:sortableColumn property="lugWrench" title="${message(code: 'diagnostic.lugWrench.label', default: 'Lug Wrench')}" />
					
						<g:sortableColumn property="lugNut" title="${message(code: 'diagnostic.lugNut.label', default: 'Lug Nut')}" />
					
						<g:sortableColumn property="extraTire" title="${message(code: 'diagnostic.extraTire.label', default: 'Extra Tire')}" />
					
						<g:sortableColumn property="horn" title="${message(code: 'diagnostic.horn.label', default: 'Horn')}" />
					
					</tr>
				</thead>
				<tbody>
				<g:each in="${diagnosticInstanceList}" status="i" var="diagnosticInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
					
						<td><g:link action="editDiagnostic" id="${diagnosticInstance.id}">${fieldValue(bean: diagnosticInstance, field: "date")}</g:link></td>
					
                                                <td>${fieldValue(bean: diagnosticInstance, field: "paint")}</td>
                                                
						<td>${fieldValue(bean: diagnosticInstance, field: "jack")}</td>
					
						<td>${fieldValue(bean: diagnosticInstance, field: "lugWrench")}</td>
					
						<td>${fieldValue(bean: diagnosticInstance, field: "lugNut")}</td>
					
						<td>${fieldValue(bean: diagnosticInstance, field: "extraTire")}</td>
					
						<td>${fieldValue(bean: diagnosticInstance, field: "horn")}</td>
					
					</tr>
				</g:each>
				</tbody>
			</table>
		</div>     
                <g:form method="post" >
                  <fieldset class="buttons">
                    <g:link class="list" action="newDiagnostic">Create</g:link>
                    <g:actionSubmit class="save" action="listVehicle" value="${message(code: 'Return')}" />
                  </fieldset>
                </g:form>
        </body>
</html>
